﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using INSTA.BankApplication.DAL;

namespace INSTA.BankApplication.ConsoleUI
{
    /// <summary>
    /// dfsdfsdf
    /// </summary>
    [Table("Personne")]
    public class Person : DataMapper
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="Person"/> class.
        /// </summary>
        public Person()
        {}

        /// <summary>
        /// Initializes a new instance of the <see cref="DataMapper" /> class.
        /// </summary>
        /// <param name="id">The identifier.</param>
        public Person(int id): base(id)
        {}

        /// <summary>
        /// Gets or sets the name.
        /// </summary>
        /// <value>The name.</value>
        [Field("Nom")]
        public string Name          { get; set; }

        /// <summary>
        /// Gets or sets the first name.
        /// </summary>
        /// <value>The first name.</value>
        [Field("Prénom")]
        public string FirstName     { get; set; }

        /// <summary>
        /// Gets or sets the year of birth.
        /// </summary>
        /// <value>The year of birth.</value>
        [Field("AnnéeNaissance")]
        public int YearOfBirth      { get; set; }

    }
}
